<?php

class MagentoBook_ShippingModule_Model_Carrier_BareBonesMethod extends
    Mage_Shipping_Model_Carrier_Abstract
{
    protected $_code = 'shippingmodule';

    public function collectRates(Mage_Shipping_Model_Rate_Request $request) {
        if(!$this->getConfigData('active')){
            Mage::log('The ' . $this->_code . 'shipping method is not active');
            return FALSE;
        }
        return 1;
    }
}
